<?php $this->load->view('header.tpl');?>


<div id="content" class="clearfix">
	<div class="main">
		<div class="mod">
			<h1>bashbord</h1>
			<div class="bd">
				<a class="hbutton" href="/admin/person">+Add Person</a>
			</div>
<br>
			<div class="mod clearfix"><h1>Participants List</h1></div>

			<?foreach($lists as $l):?>
			<div class="mod">
				<h2><a href="<?=$l->website?>" target="_blank"><?=$l->name?></a></h2>
				<div class="op">
					<a href="/admin/person/<?=$l->id?>">Edit</a> | 
					<a href="javascript:" onclick="iconfirm('sure?','/admin/delete/<?=$l->id?>')">Delete</a>
				</div>
			</div>
			<?endforeach?>
		</div>
		
	</div><!-- end main -->

		<?$this->load->view('aside.tpl')?>

</div><!-- end content -->
<script type="text/javascript">
function iconfirm(a,b){
	if(confirm(a)){
		window.location.href = b;
	}
}
</script>
<?php $this->load->view('footer.tpl');?>